package com.zy.dp.chainofresponsibility.example5;

public class GoodsSaleEbo
{
	public boolean sale(String user, String customer, SaleModel saleModel)
	{

		SaleSecurityCheck ssc = new SaleSecurityCheck();
		SaleDataCheck sdc = new SaleDataCheck();
		SaleLogicCheck slc = new SaleLogicCheck();
		SaleMgr sd = new SaleMgr();
		ssc.setSuccessor(sdc);
		sdc.setSuccessor(slc);
		slc.setSuccessor(sd);

		return ssc.sale(user, customer, saleModel);
	}
}
